#pragma once
#include <typescommon.h>

typedef uint32_t queuetype;
struct queueArrayInformStruct
{
	uint8_t *saveBuf;//缓冲区
	queuetype windex;	
	queuetype rindex;
    queuetype bufLen;
};

void queueArrayInit(struct queueArrayInformStruct *finf, uint8_t *usrp, queuetype savelen);
queuetype queueArrayInputString(struct queueArrayInformStruct *finf, const uint8_t *inbuf, queuetype len);
queuetype queueArraySize(struct queueArrayInformStruct *finf);
queuetype queueArrayGetString(struct queueArrayInformStruct *finf, uint8_t *outbuf, queuetype len);
queuetype queueArrayGetFixedSizeString(struct queueArrayInformStruct *finf, uint8_t *outbuf, queuetype len);
